package com.rj.framework.component.tech.captcha;

import java.time.Duration;

/**
 * 验证码存储接口
 */
public interface CaptchaStore {
    void store(CaptchaRecord record);

    CaptchaRecord get(String id);

    void update(CaptchaRecord record);

    void remove(String id);

    void cleanExpired();

    int getRecentCount(String target, CaptchaType type, Duration period);
}
    